application of differentiation increasing and decreasing functions